package com.zoro.barn.business.service.system.business.systeminfo.dao;

import com.zoro.barn.commons.db.annotations.MybatisMapper;
import com.zoro.barn.business.service.system.business.systeminfo.entity.BarnSystemInfo;

import java.util.List;

/**
 * @author zhaoxingwu
 */
@MybatisMapper
public interface BarnSystemInfoMapper {


    /**
     * 主键查询
     *
     * @param pid pid
     * @return result
     */
    BarnSystemInfo getById(String pid);

    /**
     * insert a new data
     *
     * @param barnSystemInfo data
     */
    void insert(BarnSystemInfo barnSystemInfo);

    /**
     * update a new data by pid
     *
     * @param barnSystemInfo new data
     */
    void update(BarnSystemInfo barnSystemInfo);

    /**
     * 条件查询
     *
     * @param barnSystemInfo 查询条件
     * @return result set
     */
    List<BarnSystemInfo> query(BarnSystemInfo barnSystemInfo);
}
